package com.ccnf.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2018-06-14
 */
@TableName("message_point")
@Data
public class MessagePoint extends Model<MessagePoint> {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @ApiModelProperty(hidden = true)
    @TableId("point_id")
    private Long pointId;

    /**
     * 展会ID
     */
    @ApiModelProperty("展会ID")
    @TableField("expo_id")
    private Long expoId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 节点标题
     */
    @TableField("point_title")
    private String pointTitle;
    /**
     * 节点图片
     */
    @TableField("point_image")
    private String pointImage;
    /**
     * 节点描述
     */
    @TableField("point_desc")
    private String pointDesc;
    /**
     * 节点时间
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @Override
    protected Serializable pkVal() {
        return this.pointId;
    }
}